<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Brands extends Model
{
     function getBrandsByInput($string){
        $result = $this->select('name')->where('name', 'like', "%$string%")->get();
        return $result;
    }
}
